package a.b.c;

import org.antlr.runtime.*;
import org.antlr.runtime.tree.*;

import antlr.CommonToken;

import com.polytech.diploma.OracleSQL.*;

	class DmlStatement extends CommonTree
	{
		DmlStatement(int tokenType)
		{
			token = (Token) new CommonToken(tokenType, "");
		}
	}

public class Test {
    public static void main(String[] args) throws Exception {    
        ANTLRStringStream in = new ANTLRStringStream("select a, b from c where a=b;");
        PLSQLLexer lexer = new PLSQLLexer(in);
        CommonTokenStream tokens = new CommonTokenStream(lexer);
        PLSQLParser parser = new PLSQLParser(tokens);
        //parser.sql_script();
        
        PLSQLParser.dml_statement_return r = parser.dml_statement();
        if ( r.getTree()!=null ) {
            System.out.println(((Tree)r.getTree()).toStringTree());
            ((CommonTree)r.getTree()).sanityCheckParentAndChildIndexes();
        }
    }
}